<table class="table table-condensed table-striped table-responsive">
	<thead>
		<tr>
			<th><?php echo ucfirst(translate("cod_produs")); ?></th>
			<th>
				<?php echo ucfirst(translate("quantity")); ?><br />
				(<?php echo translate("per_unitate"); ?>)
			</th>
			<th>
				<?php echo ucfirst(translate("price")); ?><br />
				(<?php echo translate("per_unitate"); ?>)
			</th>
			<th><?php echo translate("timp_procesare_comanda"); ?></th>
		</tr>
	</thead>
	<tbody>
		<?php foreach($wholesales as $wholesale): ?>
			<?php
				$selected = "";
				if($wholesale["min_quantity"] <= $quantity && $wholesale["max_quantity"] >= $quantity)
				{
					$selected = "selected";
				}
			?>
			<tr class="<?php echo $selected; ?>">
				<td><a title=""><?php echo $product["product_code"]; ?></a></td>
				<td><?php echo $wholesale["min_quantity"] ." - " . $wholesale["max_quantity"]; ?> <?php echo ($product["quantity_type"] == 1 ? translate("sets") : translate("pieces")); ?></td>
				<td>
					<?php
						if($wholesale["price"] > 0)
						{
							echo makePriceInterval($wholesale["price"]); 
						}
						else
						{
					?>
						<a title=""><?php echo translate("contact_now"); ?>
					<?php }	?>
				</td>
				<td>
					<?php
						if($wholesale["processing_time"] > 0)
						{
							echo $wholesale["processing_time"] . translate("days"); 
						}
						else
						{
					?>
						<a title=""><?php echo translate("contact_now"); ?></a>
					<?php }	?>
				</td>
			</tr>
		<?php endforeach; ?>
	</tbody>
</table>